import HttpCommonApiService from "./common/HttpCommonApi.service";

/**
 * Created by baidm in 2022/4/27 on 16:23
 */
class FreeApiService {
    constructor() {
        this.appid = `56761788`
        this.appsecret = `ti3hP8y9`
        this.$http = new HttpCommonApiService({
            baseURL: `https://www.tianqiapi.com`
        })
    }

    /**
     * 查询实况天气
     * @param params
     * @returns {*}
     */
    queryFreeDay(params) {
        let {city} = params
        return this.$http.get(`/free/day?appid=${this.appid}&appsecret=${this.appsecret}&city=${city}`)
    }
}

export default new FreeApiService()